package com.aceitunaproject.server.message.processor;

import com.aceitunaproject.server.player.Player;
import com.aceitunaproject.shared.message.Message;
import com.aceitunaproject.shared.message.hello.HelloWorldResponse;

/**
 * @author Federico Bergstein
 *
 * A sample "HelloWorld" processor
 */
public class HelloWorldProcessor implements MessageProcessor {

	
	/* (non-Javadoc)
	 * @see com.aceitunaproject.server.message.processor.MessageProcessor#processMessage(com.aceitunaproject.server.player.Player, com.aceitunaproject.shared.message.Message)
	 */
	@Override
	public void processMessage(Player player, Message message) {
		
		HelloWorldResponse response = new HelloWorldResponse("Hello World");
		
		player.sendObjectMessage(response);
		
	}

}
